import 'package:build/build.dart';
import 'package:json_generator/src/JsonGenerator.dart';
import 'package:source_gen/source_gen.dart';

Builder json(BuilderOptions options, {bool useStatic = true,
  bool useSnakeCase = true}) =>
    SharedPartBuilder([JsonGenerator(useStatic: useStatic,
        useSnakeCase: useSnakeCase)], 'json');
